# Contributor: Carlo Landmeter <clandmeter@alpinelinux.org>
# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
# Maintainer: Carlo Landmeter <clandmeter@alpinelinux.org>
pkgname=libnetfilter_log
pkgver=1.0.2
pkgrel=2
pkgdesc="interface to packets that have been logged by the kernel packet filter"
url="https://www.netfilter.org/projects/libnetfilter_log/"
arch="all"
license="GPL-2.0-only"
depends_dev="linux-headers"
makedepends="$depends_dev libnfnetlink-dev libmnl-dev"
subpackages="$pkgname-dev"
source="https://www.netfilter.org/projects/libnetfilter_log/files/libnetfilter_log-$pkgver.tar.bz2"
options="!check"

prepare() {
 	default_prepare
	update_config_sub
}

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
6b33718b1dd7f4504bceae14001da3a652cec46a6725a5dee83a7b55028cfa8e768cba917f968a5d5b60fd9ff04edf6040ef271a68e5fb65858bf73f4f9ccf23  libnetfilter_log-1.0.2.tar.bz2
"
